package top.mschen.blog.service.aticle.impl;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;
import top.mschen.blog.dao.ArticleMapper;
import top.mschen.blog.entity.ArticleWithBLOBs;
import top.mschen.blog.service.aticle.ArticleService;

import java.util.List;

@Service
public class ArticleServiceImpl implements ArticleService {

  @Mapper
  private ArticleMapper articleMapper;


    @Override
    public List<ArticleWithBLOBs> listByPage(int startLimit, int count) {
        return articleMapper.selectByPage(startLimit ,count);
    }
}
